using System;

namespace Socium.Domain.Tests {
	[Serializable]
	public abstract class Question {
		string _text;

		protected Question()
			: this(null) {
		}

		protected Question(string text) {
			_text = text;
		}

		public string Text {
			get { return _text; }
			set {
				if (ValidateText(value))
					_text = value;
			}
		}

		public string Description { get; set; }

		protected virtual bool ValidateText(string value) {
			return true;
		}
	}
}